import { Form, Input, Button, Checkbox } from 'antd';

const Demo = (props) => {
  const a = props.name.a
  const b = props.name.b
  const user = props.user
  let getChildrenData = props.getChildrenData
  const str = {a:'aaa',b:"bbbb"}
  const n = 2000
  function getChildrenDatas(str,n){
    // 子组件 调 父组件方法
    getChildrenData(str,n)
  }
  return (
    <div>父传子:{a},{b},用户字符串{user}
    <div>
      <button onClick={ () => getChildrenDatas(str,n) }>子组件传给父组件的值</button>
    </div>
    </div>
  );
};
 export default  Demo
